<?php

namespace Xin\ChatGPT\Contracts;

interface Factory
{
    /**
     * 获取驱动实例
     * @param string|null $name
     * @return Channel
     */
    public function channel(string $name = null): Channel;
}
